<table id="sample-histories-table" class="table table-bordered table-hover">
  <thead>
    <tr>
      <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
      <td class="text-left">
        {% if sort == 'date_added' %}
          <a href="{{ sort_date_added }}" class="{{ order|lower }}">{{ entry_created_at_text }}</a>
        {% else %}
          <a href="{{ sort_date_added }}">{{ entry_created_at_text }}</a>
        {% endif %}
      </td>
      <td class="text-center">
        {{ entry_created_by_text }}
      </td>
      <td class="text-right">{{ entry_actions_text }}</td>
    </tr>
  </thead>
  <tbody>
    {% if samples %}
      {% for sample in samples %}
      <tr id="{{ sample.name }}">
        <td class="text-left">
          {% if post.upload_id in selected %}
            <input type="checkbox" name="selected[]" value="{{ sample.name }}" checked="checked" />
          {% else %}
            <input type="checkbox" name="selected[]" value="{{ sample.name }}" />
          {% endif %}
        </td>
        <td class="text-left">{{ sample.created_at }}</td>
        <td class="text-center">{{ sample.created_by }}</td>
        <td class="text-right">
          <a href="{{ sample.download }}" data-theme="{{ theme }}" data-sample="{{ sample.name }}" data-loading-text="{{ entry_downloading_text }}" class="btn btn-default pavothemer-download"><i class="fa fa-download"></i> {{ entry_download_text }}</a>
          <a href="{{ sample.import }}" data-theme="{{ theme }}" data-sample="{{ sample.name }}" data-loading-text="{{ entry_importing_text }}" class="btn btn-primary pavothemer-import"><i class="fa fa-upload"></i> {{ entry_import_text }}</a>
          <a href="{{ sample.delete }}" data-theme="{{ theme }}" data-sample="{{ sample.name }}" data-loading-text="{{ entry_deleting_text }}" class="btn btn-danger pavothemer-delete-export"><i class="fa fa-trash-o"></i> {{ entry_delete_text }}</a>
        </td>
      </tr>
      {% endfor %}
    {% else %}
      <tr>
        <td class="text-center" colspan="6">{{ text_no_results }}</td>
      </tr>
    {% endif %}
  </tbody>
</table>